We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d2b0a3 commit d3651e4Copy full SHA for d3651e4
signale.js
@@ -22,6 +22,7 @@ class Signale {
22
this._scopeName = options.scope || '';
23
this._timers = options.timers || new Map();
24
this._types = Object.assign(types, this._customTypes);
25
+ this._stream = options.stream || process.stdout;
26
27
Object.keys(this._types).forEach(type => {
28
this[type] = this._logger.bind(this, type);
@@ -80,7 +81,7 @@ class Signale {
80
81
}
82
83
_log(message) {
- process.stdout.write(message + '\n');
84
+ this._stream.write(message + '\n');
85
86
87
_formatDate() {
0 commit comments